package com.xinke.module.system.model.vo.mail;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 邮件日志新增/修改 Request VO")
@Data
public class MailLogSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "4894")
    private Long logId;

    @Schema(description = "用户编号", example = "28229")
    private Long userId;

    @Schema(description = "用户类型", example = "1")
    private Integer userType;

    @Schema(description = "接收邮箱地址", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "接收邮箱地址不能为空")
    private String receiveMailAddress;

    @Schema(description = "邮箱账号编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "360")
    @NotNull(message = "邮箱账号编号不能为空")
    private Long mailAcctId;

    @Schema(description = "发送邮箱地址", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "发送邮箱地址不能为空")
    private String sendMailAddress;

    @Schema(description = "模板编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "16429")
    @NotNull(message = "模板编号不能为空")
    private Long templateId;

    @Schema(description = "模板编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "模板编码不能为空")
    private String templateCode;

    @Schema(description = "模版发送人名称", example = "李四")
    private String templateNickName;

    @Schema(description = "邮件标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "邮件标题不能为空")
    private String templateTitle;

    @Schema(description = "邮件内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "邮件内容不能为空")
    private String templateContent;

    @Schema(description = "邮件参数", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "邮件参数不能为空")
    private String templateParams;

    @Schema(description = "发送状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "发送状态不能为空")
    private Integer sendStatus;

    @Schema(description = "发送时间")
    private LocalDateTime sendTime;

    @Schema(description = "发送返回的消息 ID", example = "29517")
    private String sendMessageId;

    @Schema(description = "发送异常")
    private String sendException;

}